Modied main activity and virtual list adapter