Move page-specific code from default.erb to index.erb