change controller structure and new files for ui
change controller structure and new files for ui