set routes on start and redirect if no route is set