some work on main gui panel