Add functions related to flash messages