added loadHandler and update for rendering