Custom dialog implementation

Custom modal dialog

This is a custom modal dialog built with manual event listeners.