adding flashed messages