adds flash messages for sprint pages