fix adding positions of template, style changes