fixed bugs with opening new tab for screenshot