How I can do that a modal window work?

I follow the steps that you describe in the documentation to create a modal window, but doesn't work. the modal always appear at start the preview in UI Designer and the buttons don't work too.

Please, can you help me?

Christian Acosta