adding automatic refresh of stats