an attempt to eliminate the event handler duplicates