hook methods to button click.