ui controller and rout set up