[imp] add support to layouts for views