moved usepackage declaration of xcolor and color to the beginning of template.tex in order to avoid xcolor option clash