updating main class and views profile, settings and public/index