updating products controller