Refactor and DRY'ed actions in menu

- Added action data attributes to action button in menu
- Delegated the click event on the action buttons and target the data-action on each button