updated theme api to use theme.css and .template