added directive for modals