Added methods for controlling buttons to TopPanel