reorganize task views; add task state transitions