Improved the layout of the dialog to add new entries.