add essential templates, fix routes