Added alert in case of editing