Update - resize window

Make it work on resize window