code cleanup and fired event after basic tools are registered