add debug mode for apps
Allow same page name (using id)