solving cookie button problem