refactor views
login auth, dist add func, refactor views
first models layer
fixed no-mgr error