finish logic of settings page