refactored flash_notice