modified conditional in dynamic  attrs