now closes dialog on add alert