Made changes to leave_detail.rb