reset paint when button layout changes