multiple code chandes in detailed_view
formatting and cleaning up of code