handling unload on dashboard willDestroyElement