Move task loading to route