updated UILayout to use stencil command