Added onCLick to buttons on view card