update attention api controller