updated collpase-adjust to work, and without being so tied to how the html is formed