added methods to disable and enable indexes