because when using API directly, sometimes it doesn't send session_duration every 30 sec.
Each view is refreshed by new data from server every 10 seconds. If view is changed (from Sessions to Users for ex.) at the end of this 10 seconds, refresh had some weird effects. Fix involves an update to each view's refresh function to check whether the active view is the current function's view itself.