reverted of template controller to rest controller