added the changes for the file add lsitener, added list adapter