adding type parameter for fillTimeslots
javascript functionality besides ajax is working on timeslot edit page