calendar now loading dynamically and getting start and end dates