Added Ajax code to display pages for edit.