Modified controller methods to  rest  services (#209)