cut off all the animations for IE and improve code structure