Set cookie for list/grid view