changes to routes and fixing the table layout