implement onClickListener to handle onClick events