add click handler for branches/tags menu