category update fix bug - stop page from reloading and form submit