added functionality to settings page