calendar works with ajax