add @ refresh function to element configs