deletes and changes pages