moving template to control folder and precompiling