Added submit_on_change option for ref input functions