added animation option for spectrum_detail
added loading gif when preloading data