fixed some bugs

fixed saving on exit and window hidding when window deactivated, and
added new markers