update pages and the basic template