updating card controller