class details page functioning