add and edit function of alert