[refactor] split overview function in logic and display, start with localStorage