Hiding the right panel: debugging version