adapted wizard code to present trials, works nicely