Add function to options for displaying flash message