Shifted the button code into the add_buttons() method.
Authored by: bugman 2011-06-08
Parent: [r12893]
Child: [r12895]