Fixing bug in sample view so that page title is set