Create subview and layout in a declarable way