removes footer and header code
removes all index views