added createView function to iwpdata.php and added menu item to run it in mainmenu.php