render view before layout