Detection of element load and unload