Add_menu_page and saving settings

Use the Settings API or hook a function to admin_init that checks permissions and nonces, saves the updated values and redirects to your settings page.