broken if in applicationlayout