Add correct data attributes to view snipet