fixing preview display issues