[wip] add presentation logic from frontend