Fix to when to display scales dropdown, and selecting search type

Now only displays the scales dropdown for VL and when scales are defined.
Also fix to the code for selecting the search type dropdown according to the current page.