Updates for bug #3770 - edit dataset, metadata sections not closing once opened.