settings code backend and pure front end view