fixed small bug in SchedulingFragmentController.getEvents
refactored automatic scheduler to use a chained planning variable to increase efficiency