New click event function, should fix Firefox/IE