update checkbox directive with type analyzing