set cookie on shown popup box