Done required tasks 1-3 for Assignment 5
Added logic for managing the networkActivityIndicatorVisible