changed stats logger to work all the time (not only after clicking button)