code behind add_tasks began.