updating settings and corresponding functions