removed useless MainPanel