fixes no edit time on submit button