Changed routing to restful style