AdvancedSearch: Fixed bug which renders the wrong widget for first request.

Since the filing number splitting, the very first requests of the advancedsearch form, renders the wrong widget for the fiels.
As a consequence, that all the javascript (hiding fields etc.) does not work.
Merge pull request #420 from 4teamwork/pg_advanced_search

AdvancedSearch: Fixed bug which renders the wrong widget for first request
Made logout overlay easier to customize.