Added simple dialog based on javascript
Solved problem with dialogs