add auto-complete mode