added statistics (localStorage)