Fixed mixed indentation and added ping(green bars at the tab menu) system.

Fixed mixed indentation and added ping(green bars at the tab menu) system.