Added layout support for view rendering