fix error if no new file is selected for opening
add new puzzle dialog