fixing some conditional statements for H1 tag