finished functionality of settings