server query and related gui added.