Updated the Edit Dialog as per the tutorial