applied cookie in template