[layout] fixed creation of layout view