added study detail, fixed study flow