learnt about helper_methods, fixed the routes error