Bayesian adaptive methods in clinical trials