Remove dialog before creating another