add loaded event once modal is loaded