inject main app with setter method