Define @tasks in index()