fixed bug with browser autocomplete; performance improvements