updates for using ajax on search and update