updated the scripts for habitat loss to fit in the assigned divs