added animation to the window