code for dynamic calendar loading - closes #8