cleared bar array on navigate