dialog box works except for saving info and passing it