Dialog rotation crash fix

Refactored the dice value selection box to crash less on rotation
(Steps: tap a die image, rotate device, close dialog => app crash)