fixing json back button problem and fixing remembering categories on search