fixed template and extension install, update layout.