widgets
adding mcmc code