auto-submit form when a query is passed in the uri