add component loaded event