Add event handlers to directive

Also, add data attribute to directive for storing text.
Merge pull request #18 from Rise-Vision/chore/add-more-logic-to-directive

Add event handlers to directive