working demo with overlayed probality
Fixed the crush bug when exit the application