Moving adapter to upper level.
Adding list item click listener.