[OE-2609] api calls moved to contoller