Restructured urls and wrote view for index.