Refactored controller for Clinical Trials