add loadView function

add loadView function