updates with generic object for ajax