put markup inside if block