Add setting and resize window
Added setting and resize window