ajax working for shifts