Make edit work in IE7+