fixed pop-up bugs and started implementing the screenshot functionalities