Renamed Mainframe to coreUI and fixed minimize button