Updated MainActivity with networking