Added view functions for flash messages.