Tweak department forms and add edit functionality