added checking of scrolling up or down for listView. But it is not checked yet.