solved the controllers errors