update index to edit passes proper department