feature(layouts) add condition