fix backbutton, enter search and localStorage