fix bug with department form and make employee update method