changed controler to restcontroler