this method was the bulk of the app. It was one view for index/edit/create locations. it was nuts