Added functionality for viewing and deleting txt files