functionality to Disable/Enable completion

Added functions to control completion functionality