fix submitting settings form