Cleaned up code with help from Jeff and routes are working