refine layout for msg/prgs