Rendering header/footer in init() method