Add onClick event to button