Added buttonOnclick method