adding toggling button for background pan