added the possibility to bind an event to the external anchor clicked event