updated salary controller