update appearance of preview window.