moved update method to vendor, added put route