Creating function to display students to page and some small edits