added saved query result directive in directive.js