moved initialisation of objects in the activity to the onCreate method, fixed loading indicator