added on_refresh method
starting or ending forces refresh for all clients
fixed bug where histogram wasnt appearing when refreshing the page after end of run
a little restructuring