adding result rest controller