add tabs.
implements the event handling of tabs.
display the contents of realtime or statistics when the tabs are clicked.
remove unexpected white space.