code cleanup
code cleanup, added search term localstorage to searchmodel