fixed error with controllers moved methods to routes