Added an alert if attempt to add without saving