create layouts controller and fix routes