implemented partial page switch