added logic for enabling settings on calendar