fixing routes for proper functionality