Refactor adding action views to menu items so it doesn't require an index count