refined the close function and removed the listener for the back function in StructureView