Changed UI to HTML elements, and added working pause button and setPause method.
Added pause and working on ping
added pause and beginning on ping