Modified in order to avoid crashing when there are no widgets available for a lab.