Improve preview in parser widget