Refactored the Flashwindow in its own separate class.