Added RESTful actiosn to controller