adding templates, removing php