make sure screenshot is updated properly when screen changes