fixed an issue with quitting and shifting panels