changed model relationships, moved beforeModel into model in application route