update styles, add some fns