fix routes, view and controller