Moving routes to controllers