Bring cookie manipulating functions back into ui file.