Updated HTML if statements