used async for delete photo from aws and update database
updated to res.status
hide popup icon if no content is available