add at least some sanity to button drawing