add hints and did some refactoring of list adapter