Update things to replace entries instead of ignore them if they exist
Add and Replace acts that work on the Ui thread
clean some imports