Fix for orientation changes on edit/delete dialog boxes