Handle iOS copy, delete functionality. Fix syntax error