Where do I enter improvements to a rental property that was sold?

I purchased a townhome in 2014 which was rented till May 2019 and sold in June 2019.  Between May and June, I did several repairs, replaced ceiling fans and window treatments as well as other items.  I am still confused on where I should be entering these costs.  Should each be considered an asset and then identified as "disposed" of when I sold the unit?  I am hoping that I am inputting my figures in error as my capital gains tax is through the roof.