implemented settings form and settings persistence.