api load rewrite and styles change