Change onclick event freq. to one