remove unused css assets and hide helper text when div is active