refactored analytics
add Teble/Histogram in restore state and url