remember last panel when closing/opening the app