implemented phrase querying but ui not showing; also improved accuracy check