Plugin model and controller