added more functionality to the segmented control buttons including saving credibility and the state of the buttons in the inApp database