check when deleting a project

a dialog window comes up when one tries to delete a project.