add if statement to @country in pages controller