made json pretty print in the page index when deleting a page