work on collapse-toggle feature for purchase tables