Added code for autocomplete on contexts