Changed anchor tags to work off of the collapse opening and closing instead of timing.