adding function to mark as uploaded