Refactor api/views friend request