only show the "New" action item on index pages

closes #894
code style update