add dice modal logic