Made MainActivity responsible for displaying detail views.