Add support for other types of dialogs

DESCRIPTION
- Introduces success and error dialogs
- Changes the way parameters are passed to the function