Re-make weight dialog modal and re-activate the updating of project_definition when ok is pressed