added animation option for spectrum_detail
added loading gif when preloading data
updated to new database schema