added paste and convert functionality