Implementation of auto_complete for activities