adding view for auto-query