Refact codes in plugin.ui.window.configuration