Wrote RESTful actions and views