popup for save and update