adding modal helper directives