added time slots code for court views.