Updated dashboard

Implemented check for deleted categories in main php