associations in views and controllers