bugfix on nested issues in gantt view; code refactor