created layout for course view and instructor's view