Fixed a bug where scheduling an activity would trigger an unintended switch, as well as an issue where the UI would disappear while scheduling activities.