fix several bugs in subtask creation. Implement feature to change status of a subtask