Removes right panel when appropriate