Implement a popup box which will appear when trying to leave the level editor with unsaved changes.