integrating localStorage