improve the window open and close animations