fix wifi controller, add back model relationships