updated layout and added "if @cart true" to the index page.