updated routes so redirects workedand controllers so redirects worked