Added getSelectedTitle method to buttons