added onClickListener Functions to buttons