adding cid to controller