Removed repitition in StaticPages controller