fixed issue with form not focussing on clicked field