made class detail page dynamic