hooking up rubbish bin icon click to remove the subsection