implemented the delete feature on upload page