added method getAssignedTasks for admin dashboard