updating cookie and serach filters code