Added alert for user when they leave without saving changes