updating page editing code