adds tasks ordering
fixes bug in adding task action