Optimize settings form