general layout changes; mostly to listview
also minor code changes