update layout, using p:layout