added controller for cookie refresh