Debugging version of hiding the right panel