Adding settings fields
Correcting undefined index issues.