When on UG, only show UG links and likewise for PG

#461