Submitting update function