fix template display bug and add object_id query