fixed error with server routes, switched from url route switching to parameter route switching