Added layout method to render