Changed strings to integers for ids, updated accessible attributes and working on controllers.