save settings functionality // not finished
save settings functionality // not finished