more calendar converted to jquery, further refactoring of calendar ui