set the timer for realtime chart and stop the timer when statistics tab clicked.
remove the destroyed function for realtimeChart template.
remove the package of autopublish.