Classes details pages refactor