dialogs handle orientation change properly but not prettily