fixed the template, added css and js