Add the setting on resize window