updating number of work panels