Edited button script to cp