fixed some routes and formating errors