Pass onClick event through the button