prep controller for next details