Fix autocompleting search form, and form reset, + other minor fixes