add static and template paths
return index