fixed bug about status of query does not apply immediately
added license icon
added ng-change event to queryInput