breaking the modal directive with a purpose