configure routes & controller