Hi I have created function by copying code of display widget function & changing it so that I can create a horizontal calendar but now the problem is that when I click on next or previous button the code becomes default to the way it renders can some one please let me know what I am missing here.