button press event now working