changes to urls and views thanks to maria's advice