removed some unnecessary view functions, removed page counter which was
used to display an advert every X number of pages