Updated functions

Functions for archive course and pending course showing correct courses on each page

Signed-off-by: Kieran Briggs <kieran.briggs@sheffcol.ac.uk>