added check for var that can be set to override page title