schedule editor bugfixes and 90% refactoring done