extract layout out