improve getModels() in app controller