UI fixes

* Fix for KeyError in search
* device model autocomplete fix