wrap panels spans for updating