added update function to clothings-controller.js