move model to app and add it as a global models object