DialogAlert before removing a fav + code refactoring