removing command after retrieving it from input object in updatewid