Code improvements: move all UIPanel code from UIApp