some optimizations to spinner and forms