turn HTML into function in settings.php
fix up function name
add permissions check
remove function from main plugin file
move function to settings.php
include settings.php file