create abstract controller
move UI to MVC structure