use getTokenFromRequest in view details controller.