added function to archive button