add history and chnge modal