updating the constants via text field