update style and js messages