edited register click event