move frontend query class to portal site