better updating on autocomplete for session and categories