added Prob function
Clear page function