added effect to close window action