Fixed routes and layout
Completed the code
Fixed the index action