cookie logic, up/downvote button widget