Fixes issues of the flash notice persisting over pages