Block of code above is repeated here, because main course view does not have the auth_view_wrapper