changed modal directive to not use html from event directly
fixed invoking modal multiple times