add flash messages support