remove registry old code for IE