adding local model
add check button
add local model check function