added function to generate settings page
index rename to mirror core function var