add some theme functions and initial templates