Update render method, add header and footer