remove redundant code
add stuff for alternateIcon, which is displayed when the tab bar item state ins NSOnState