add fade effect to window open/close