URBNG-208: Updated MainActivity with adapter. Also fixed some minor bugs.