added conditional in recipe index view to ensure correct recipes are printed