add resize window functions