fixed bugs and added color-coding to timeboxes