modify updatecourt submit and findcourt query