puts graphs into partials and fixes error if 0 students