Changing the pattern of passing the name for the click alert