efaultY = headerRight.offsetTop;

    window.onload = function () {
        updateControlPanelState();
        loadDefaultsSetting();
        loadSharedPreferencesNames();

        window.addEventListener("keyup", onGlobalKeyUp);
        search.addEventListener("keyup", onSearchKeyUp);
        onPageResize();
    };

    window.onclick = function (e) {
        if (!e.target.matches('.dropdown-btn')) {
            hideDropdown();
        }

        if (!e.target.matches('.open-dropdown-btn')) {
            h