Implemented copying and pasting with selection tool