Added functionality to settings button.