added conditional Layout sample