adds routes
added methods to controllers