adding css / js links to template
fixed code which generated error