Refactoring GUI
Added base changing support for main GUI