rework buttons to use the polled event to check if there's a click
so that we dont need anymore the 'sleep' hack