Add onOnce function to manage only the first display of one element