on app generation, use different main controller for swig