Added function to toggle paste and auto-indentation