Modified ajax functions for calendar display.