Add fade out animation for main window