Sorted out RESTFull controller issues