button press and release fixes