set_details and nginx stuff happens only if change sucessful