add logic to button hit