improved angular file upload and file deletion