added accordions and fixed refrence problems