Implement view transition from main to detail.