Added setting and resize window