removed unused Code from DateFragment
improved the background-color method (Jonathan)