changed index.tpl to cms.tpl to stop confusing myself and cleaned up some markup