added an auto-hide toggle feature

added a function that checks for auto hide on new lines.