added and fixed reset because of ie8