Remove unnecessary code from settings modal