connected dice frontend to controller logic