latest frontend logic