wrote code to flash messages on incomplete pages