started implementing the panel template copy function...not working yet