submit button change and constants for api url