Adding feature for sorting and deleting files