added callback to tell what buttons are pressed when clicked on