added agent edit to test update and offline update. working