improve the window open and close animations

I adjusted the window open and close animations. Of course this is all personal preference so feel free to merge if you like it or not to if you don't.