Cleaner code for drawing buttons.