improve frontend performance