update controller considerating more RESTful and nested params
updating name field so that we can use nested params
updating to me more restful:
fixed merge conflicts regarding routes which were changed to be more RESTful