Building a dynamic content dialog with the point click event