added angular sanitize and preview directive