added layouts for listview. implemented main functionality.