added the listeners for friends and items list