Move index file to views and rename to erb file.