backup original file + add HAML template for index