fixed error with saving page and  history tracking
added todo