modification done to fix the th and fn action edit feature