move preview dialog styles to css, only show preview dialog drop shadow when visible and align dialog to top when inside modals