added action data-attribute to buttons, which is fetched on click and mapped to their respective function in tyto.js
DRY - refactored click event on each button to target it's data attribute. Effectively only needing 1 click event and target button by delegation