Improved alert box behavior. Fixed bug when deleting an unsaved contact.