prefs button now also close ui