minor changes and bug fixes
each tab ask for saving before closing