1) add buttons for HGraph but yet for implementation
2) refactor the button events with trait