Remove unused dialog opening code