add effect to modal