[frontend] Adjust callbacks.