add close option for flash message