update add function controller