Updating to make it work for divs