Fix preview function for UG/PG

Namespaces preview method for ug/pg programmes. Requires updates in of-course + PP API.