Changed var ids and updated isFollowed function