Regarding your first query:
You could do this through the once() as outlined in the post discussed previously:
once()
Regarding your second query:
You could go through the trigger as outlined in the post discussed previously:
trigger