update command handler