fixed conditional in layout