fixed some bugs in routes and views