implement button and onclick event with two methods.