integrate to frontend controller