marking controller as restcontroller to force response as json