delegates click events to appropriate anchor tags