Use helper method to dictate search box display
Fix deprication in view spec