ADD window resize function to handle UI element repositioning