Creating method to load the closed tasks