Why are you writing the same view twice?