Passing list of departments and updating default