th and fn action edit done as per samis suggestion