made fragment models, views and collections generic