setup routes, debug, view loads