Simplified options.php, moved helper functions to helpers.php