Decouple application and controller plugin