display flash message after updating department location