added request end listener