Display previous panel when closing editMode