added new loaded event. fixes #930