update routes and add register