Preparations for edit dialog.