configure cookies with button