added function to save local annotations before updating, restore annotations before opening, fixed GA tracking