front page calendar code