make changes online and offline
added 'models' page
Removed old code; adjusted new code to use library functions