core functions of tasks.html finished