updating demo button conditional statement