add toggling wrapping and paste mode