added layout xmls and modified custom adapter