modify style in preview