Fix save dialog and add parameter button selection