setting up detail controller