content controller for rest