precompile and fix submit button on index