Added directive for query panel. Added query panel to character states query.