added functions, page templates, and widget sidebar --KW