updated ui and changed on submit form events