Refactored settings text field and binding to ajax