using modal instead of flip
changing animation to flip