made calendar also work for firefox