Added a method to handle events for button @ UpgradeBar.java