must empty history div when refreshing to avoid duplicate entries