Adding functionality to list page archive button