implement onClickListener in the mainactivity