added the next and previous functions to the studentschema controller