fixed handling of empty auto-complete lists
added activity-based auto-complete to server and query windows