improved UI (nice buttons), removed bugs from searching devices dialog, some code refactoring