added option to change menu/sub menu type
added options for add_menu_page_function