lecture view functionality