Modern alert, confirm and prompt dialog implementation