add flashMessage as a arg in flash serivce