added switchPane(int key) methods to GUI