move creation of click listener to only occur 1x