set enviornment variable, add redirect from index for settings