Added state classes to state. started work on doc details page.