Added custom dialog for editing item.