Refactor Profile Settings Update to use  variable