modified most views to align with new pattern, replaced most a tags with url_for methods