added local storage and stats fragment