changed request detail close function