removing unneeded parts for non-drupal pages