created a lecture controller and managed to display an indexpage