Increased readability in paintButtons()