Updated the api controllers code.. Check now