add analytics and styling