added loaded event
added loaded event