added more functionality to settings form