Added functionality to the settings activity