Thanks for your patience.
What you'll need is a dynamic action to refresh the dept item once you return from its dialog.
You'll see an app in your workspace called "emp-rest-asktom" which demonstrates this.
Thanks to Jeff Kemp from the APEX team for his help with this