added logic to display page with just content