button events for random cubes