Added activityindicator to loading view, messed around with threading.