refactored loadIndex
refactored loadUserSettings and got rid of get and post