halfway through new open dialogs, needs testing and debugging
started another function