refactored to make uls and dts hide show and toggle