add the pages sample code for adding sub tab in register page