Remove repetitive code in interactive pages, use api_call() directly everywhere