Moved the modal into its own directive