improve frontend loading