refine the control to work with the ajax call