Adjust Size and resize window