save postID and isUpdate to rootScope on edit