added cancel functionality to inputfields + fixed response in case of bad requests