fixed orientation issues when displaying the edit/add dialog & display keyboard for the dialog