removed unused method animatewindow from utils