Created custom events for NewFile dialog buttons