several bug fix in advanced search with suggestions of cuche

solved several problems mentionned by cuche, auto adjusting problem of content page is sitll unsolved.