refactored total line to be only on home.erb. not needed on edit or add pages