added global click listener