Remove old panel when displaying a new one