Change pagetype