fixed bug with the way we handle button_was_pressed