organize code queries - cache localStorage, reference view