adding cookie to survive refreshes