v5 - do not reset the tab when switching between flights
v2 - fix closing panel when clicking Cancel/Save/Publish buttons