adds calendar directive