Implements history menu on right-click on history arrows