fixed add child page functionality