add panel before create
add copy function