modify index file to use layout