fix button events on mobile, other minor fixes