Added a updateData function to allow refreshing currently visible views