move main UI class to new ui package