models and admin.rb files modified new rb style